home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et-2_2.lha / et2.2 / applications / draw / DrawController.h < prev    next >
C/C++ Source or Header  |  1990-09-21  |  749b  |  27 lines

  1. #ifndef DrawController_First
  2. #define DrawController_First
  3.  
  4. #include "Object.h"
  5.  
  6. //---- DrawController --------------------------------------------------------
  7. //     Helper class for reusing Draw as a building block independent from a
  8. //     specific document type
  9.  
  10. class DrawController: public Object {
  11.     class DrawView *drawView;
  12. public:
  13.     MetaDef(DrawController);
  14.     DrawController(class DrawView *);
  15.     virtual class MenuBar *CreateMenuBar(class EvtHandler *next);
  16.     virtual class Command *DoMenuCommand(int cmd);
  17.     
  18.     //---- input/output
  19.     virtual class ObjList *ReadShapes(istream &from);
  20.     virtual void WriteShapes(ostream &from);
  21.     
  22.     virtual Command *DoImport(istream &s, FileType *ft);
  23. };
  24.  
  25. #endif DrawController_First
  26.  
  27.